// @Author miaoqing
// @Date 2024/10/21 17:07:00
// @Desc
package logic

import (
	"core/command"
	"time"
)

func (robot *Robot) registerTimer() {
	robot.timer.RegTimer(robot.checkBackpacking, 100*time.Millisecond)
}

func (robot *Robot) registerMsgHandler() {
	robot.handlers[command.Backpacking] = robot.doWithMsgBackpackingHandler
	robot.handlers[command.GoalResult] = robot.doWithGoalResultHandler
}
